<table>
<?php foreach($this->data as $row):?>
<tr><td class="subject_name" ><?php echo $row['name']?></td>
<td><input size="3" id="num-<?php echo $row['subject_sn']?>" name="nums[<?php echo $row['subject_sn']?>]" value="<?php echo $row['sections']?>"  class="required" />
</td>
</tr>
<?php endforeach?>
</table>
